package com.kaifamiao.mapper;

import com.kaifamiao.model.Employee;

import java.util.List;

/**
 * @author lucien-ma
 * @date 2021/8/14
 * @apiNote
 */
public interface IEmployeeMapper {

    /**
     * 添加一条员工数据
     * @param employee
     * @return
     */
    int saveEmployee(Employee employee);

    /**
     * 更新一条员工数据
     * @param employee
     * @return
     */
    int updateEmployee(Employee employee);

    /**
     * 查询所有员工及部门信息
     * @return
     */
    List<Employee> findAllEmployeeWithDept();

    /**
     * 根据需求查询员工信息
     * @param employee
     * @return
     */
    List<Employee> findEmployeeByRequ(Employee employee);

    /**
     * 根据姓名及工作模糊查询员工信息
     * @param employee
     * @return
     */
    List<Employee> findEmployeeByLike(Employee employee);
}
